package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyContract;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyContractParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyContractResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合同管理 Mapper 接口
 * </p>
 *
 * @author liuy
 * @since 2022-05-10
 */
public interface BtyContractMapper extends BaseMapper<BtyContract> {

    /**
     * 获取列表
     *
     * @author liuy
     * @Date 2022-05-10
     */
    List<BtyContractResult> customList(@Param("paramCondition") BtyContractParam paramCondition);

    /**
     * 获取map列表
     *
     * @author liuy
     * @Date 2022-05-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyContractParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author liuy
     * @Date 2022-05-10
     */
    Page<BtyContractResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyContractParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author liuy
     * @Date 2022-05-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyContractParam paramCondition);

    /**
     * 获取开发人员列表
     * @return
     */
    List<Map>kfryList();

    /**
     * 获取一级区域列表
     * @return
     */
    List<Map>primaryAreaList();

    /**
     * 根据pid获取二级区域
     * @param pid
     * @return
     */
    List<Map>secondaryAreaList(@Param("pid") int pid);

    /**
     * 获取店名列表
     * @return
     */
    List<Map>dmList();

    boolean insertContract(List<BtyContract>list);

    void saveArea();

    List<BtyContractResult>msgList();

    List<BtyContractResult>msgZeroList();

    List<BtyContractResult>gcList(@Param("id") int id);

    List<BtyContractResult>kfry(@Param("dm") String dm);



}
